#include <iostream>
#include <unistd.h>
#include "../../plcc/EventProcess.h"
using namespace std;

int main () {
  EventProcess *p = EventProcess::GetInstance();
  p->Start();
  sleep(5);
  for (int i=0; i<10; i++) {
    p->AddEvents(1, i);
  }
  EventProcess *p1 = EventProcess::GetInstance();

  cout << (p==p1) <<endl;

  sleep(4);
  for (int i=0; i<10; i++) {
    p->AddEvents(1, i);
  }
  delete p;
  //p->Join();
}
